package com.xcity.pomelo.push.sync;

import com.xcity.game.common.LogCause;
import com.xcity.pomelo.PomeloRoute;
import com.xcity.pomelo.push.SyncPush;

import naga.x.net.impl.pomelo.PomeloMessage;
import naga.x.net.impl.pomelo.protocol.Message;

/**
 * 一个int同步项
 * @author YangLi
 *
 */
@PomeloMessage(type = Message.Type.PUSH, route = PomeloRoute.PUSH_SYNC)
public class IntSync extends SyncPush {

	protected int value;
	
	public IntSync(short id, int value) {
		super(id);
		this.value = value;
	}
	
	public IntSync(short id, int value, LogCause cause) {
		super(id, cause);
		this.value = value;
	}

	public int getValue() {
		return value;
	}

	public void setValue(int value) {
		this.value = value;
	}
	
}
